<%@ page import="com.psl.model.halfbringModel" %>
<%@ page import="com.psl.model.userlogin" %>
<%@ page import="com.psl.services.work.halfbring" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    userlogin userinfo = (userlogin) session.getAttribute("user");
    if (userinfo == null) {
        response.sendRedirect("/login.do");
    }%>
<!DOCTYPE html >
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title></title>
    <link href="/assets/css/layout.css" rel="stylesheet" type="text/css">
    <%  if(request.getAttribute("msg")!=null){
        out.print(request.getAttribute("msg"));}%>
    <style>
        body{
            font-size: 15px;
        }
    </style>
</head>

<body>
<table width="99%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#AEDEF4">
    <tr>
        <td height="25" colspan="6" align="center" bgcolor="#D6F2FD">
            山东宜利达流体设备有限公司组装配件(切换 <a href="halfcoating_bring.jsp"> 铸件</a>)领料表
        </td>
        <td height="25" colspan="1" align="center" bgcolor="#D6F2FD"><a href="/list/workshop/bringlog.jsp">查看领料记录</a></td>
    </tr>
    <tr>
        <td align="center" bgcolor="#FFF9DF" colspan="1"></td>
        <td align="center" bgcolor="#FFF9DF" colspan="1"></td>
        <td align="center" bgcolor="#FFF9DF" colspan="1"></td>
        <td align="center" bgcolor="#FFF9DF" colspan="1"></td>
        <td align="center" bgcolor="#FFF9DF" colspan="1"></td>
        <td align="center" bgcolor="#FFF9DF" colspan="1"></td>
        <td align="center" bgcolor="#FFF9DF" colspan="1"></td>
    </tr>
    <tr>
        <td align="center" bgcolor="#FFF9DF">铸件/配件编号</td>
        <td height="25" align="center" bgcolor="#FFF9DF">铸件/配件名称</td>
        <td align="center" bgcolor="#FFF9DF">规格</td>
        <td align="center" bgcolor="#FFF9DF">商标</td>
        <td align="center" bgcolor="#FFF9DF">压力</td>
        <td align="center" bgcolor="#FFF9DF">领取数量</td>
        <td align="center" bgcolor="#FFF9DF">领取时间</td>
    </tr>
    <form action="/zzpj.do" method="post">
        <tr>
            <td align="center" bgcolor="#FFF9DF"><input type="text" name="h_no" value=""></td>
            <td align="center" bgcolor="#FFF9DF"></td>
            <td align="center" bgcolor="#FFF9DF"><input type="text" name="h_size" value=""></td>
            <td align="center" bgcolor="#FFF9DF"><jsp:include page="/list/halfproduct/R.jsp"/></td>
            <td align="center" bgcolor="#FFF9DF"><jsp:include page="/list/halfproduct/PN.jsp"/></td>
            <td align="center" bgcolor="#FFF9DF"><input type="number" name="h_bring_num" value=""></td>
            <td align="center" bgcolor="#FFF9DF"><input type="date" name="h_bring_datetime" value=""><input
                    type="submit" value="领取"></td>
        </tr>
    </form>
    <tr>
        <td align="center" bgcolor="#FFF9DF" height="25" ></td>
        <td align="center" bgcolor="#FFF9DF"></td>
        <td align="center" bgcolor="#FFF9DF"></td>
        <td align="center" bgcolor="#FFF9DF"></td>
        <td align="center" bgcolor="#FFF9DF"></td>
        <td align="center" bgcolor="#FFF9DF"></td>
        <td align="center" bgcolor="#FFF9DF"></td>
    </tr>
    <tr>
        <td align="center" bgcolor="#BFE6FF">铸件/配件编号</td>
        <td height="25" align="center" bgcolor="#BFE6FF">铸件/配件名称</td>
        <td align="center" bgcolor="#BFE6FF">规格</td>
        <td align="center" bgcolor="#BFE6FF">商标</td>
        <td align="center" bgcolor="#BFE6FF">压力</td>
        <td align="center" bgcolor="#BFE6FF">铸件库存剩余数量</td>
        <td align="center" bgcolor="#BFE6FF">领取时间</td>
    </tr>
    <%
        halfbring hb = new halfbring();
        List h = hb.c_bring_list();
        Iterator iter = h.iterator();
        halfbringModel hbm = null;
        while (iter.hasNext()) {
            hbm = (halfbringModel) iter.next();
    %>
    <tr>
        <td  height="25" align="center" bgcolor="#BFE6FF"><%=hbm.getH_no()%>
        </td>
        <td  height="25" align="center" bgcolor="#BFE6FF"><%=hbm.getH_name()%>
        </td>
        <td  height="25" align="center" bgcolor="#BFE6FF"><%=hbm.getH_size()%>
        </td>
        <td  height="25" align="center" bgcolor="#BFE6FF"><%=hbm.getH_r()%>
        </td>
        <td  height="25" align="center" bgcolor="#BFE6FF"><%=hbm.getH_n()%>
        </td>
        <td  height="25" align="center" bgcolor="#BFE6FF"><%=hbm.getH_bring_num()%>
        </td>
        <td  height="25" align="center" bgcolor="#BFE6FF"><%=hbm.getH_bring_datetime()%>
        </td>
    </tr>
    <%}%>
    </tbody>
</table>

</body>
</html>